#include "GameEngine.h"
#include "IntroState.h"

//program main function
int main(int argc, char* argv[]){

    std::cout << "Start Game Engine..." << std::endl;

    GameEngine game;

	// initialize the engine
	game.Init();

	// load a state
	game.ChangeState( IntroState::Instance());

	// main loop

	std::cout << "Start Game Loop..." << std::endl;

	while ( game.Running() )
	{
		game.Events();
		game.Update();
		game.Render();
	}

	// cleanup the engine
	game.Cleanup();

	return 0;
}
